package com.ucas.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.ucas.dao.UserRespositroy;
import com.ucas.model.User;
import com.ucas.service.UserService;

@Service
public class UserServiceImpl implements UserService {
	@Autowired
	private UserRespositroy userRespositroy;

	@Override
	public Map<String, Object> saveUser(User user) {
		user = userRespositroy.save(user);
		System.out.println(user.getId());
		return null;
	}

	@Override
	public List<User> findAll() {
		return userRespositroy.findAll();
	}
}
